﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GearUp.Crawler;

namespace LorebookLoader.Console
{
    class Program
    {
        static void Main(string[] args)
        {
            ILoreBookItemRepository repository = new LoreBookItemRepository();
            var parser = new LorebookItemParser();
            var linkManager = new LinkManager("http://lorebook.lotro.com/wiki/");
            var crawler = new Crawler(repository, parser, linkManager);
			//crawler.StartCrawl("http://lorebook.lotro.com/wiki/Armour:Aearanc_(Level_40)");
			crawler.StartCrawl("http://lorebook.lotro.com/wiki/Category:Items");
            //System.Console.ReadLine();
        }
    }
}
